package com.yy.wga.income.feign.api;


import com.yy.wga.common.core.dto.BasePageRequestDTO;
import com.yy.wga.common.core.dto.Result;
import com.yy.wga.income.feign.request.IncomeOrderConfirmRequest;
import com.yy.wga.income.feign.response.IncomeUpGradeGetNotifyResponse;
import com.yy.wga.income.feign.response.IncomeUpGradePageResponse;
import com.yy.wga.income.feign.response.IncomeUpGradeParentUserPageResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;

/**
 * 直通车大礼包订单收益
 *
 * @author guochao
 * @since 2024-11-12 00:27:45
 */
@FeignClient(name = "IncomeUpGradeFeign", url = "https://wga-api.xianrcj.com",
        path = "/api/income/upgrade")
public interface IncomeUpGradeFeign {

    /**
     * 获取收益列表
     * @return
     */
    @PostMapping("list")
    Result<List<IncomeUpGradePageResponse>> list(@RequestBody @Valid BasePageRequestDTO request);

    /**
     * 获取享客订单列表
     * @return
     */
    @PostMapping("parentUserList")
    Result<List<IncomeUpGradeParentUserPageResponse>> parentUserList(@RequestBody @Valid BasePageRequestDTO request);

    /**
     * 确定订单
     * @return
     */
    @PostMapping("confirm")
    Result<Boolean> confirm(@RequestBody @Valid IncomeOrderConfirmRequest request);

    /**
     * 查询服务商礼包通知
     * @return
     */
    @PostMapping("getNotify")
    Result<List<IncomeUpGradeGetNotifyResponse>> getNotify();
}
